package zhihui.mobile.bean.shop.detail;

/**
 * Created by 张公铭 on 2017/9/7 0007.
 * 活动信息
 */

public class ActivityInfo
{
    private String desc_f;      //活动描述
    private int id_f;           //活动id
    private int usernum_f;      //限制
    private int type_f;         //活动类型1:满减,2:折扣,3:抵用,4:运费卷

    public String getDesc_f()
    {
        return desc_f;
    }

    public int getId_f()
    {
        return id_f;
    }

    public int getUsernum_f()
    {
        return usernum_f;
    }

    public int getType_f()
    {
        return type_f;
    }

    public void setDesc_f(String desc_f)
    {
        this.desc_f = desc_f;
    }

    public void setUsernum_f(int usernum_f)
    {
        this.usernum_f = usernum_f;
    }

    public void setId_f(int id_f)
    {
        this.id_f = id_f;
    }

    public void setType_f(int type_f)
    {
        this.type_f = type_f;
    }

    public static String getTypeString(int typeId)
    {
        switch (typeId)
        {
            case 1:
                return "满减";
            case 2:
                return "折扣";
            case 3:
                return "抵用";
            case 4:
                return "运费券";
        }
        return "活动";
    }
}
